package com.hae.shop.pay.model.reqDto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 支付请求
 */
@Data
@ApiModel(value = "支付请求")
public class GetPayTokenReqDto {

    @NotBlank(message = "会员id不能为空")
    @ApiModelProperty(value = "会员id")
    private String userId;

    @NotBlank(message = "订单id不能为空")
    @ApiModelProperty(value = "订单id")
    private String orderId;

    @NotNull(message = "支付金额不能为空")
    @ApiModelProperty(value = "支付金额")
    private Double payAmount;
}
